import Vue from 'vue'
import Router from 'vue-router'
import mainFrame from '@/views/main'
Vue.use(Router)
export const powerRouter = [{
  path: '/',
  name: 'mainFrame',
  component: mainFrame,
  children: [{
    path: '/accesscontent',
    name: 'accesscontent',
    component: () => import('@/views/content'),
    children: [{
      path: '/personal',
      name: 'personal',
      component: () => import('@/views/content/mine'),
      meta: { name: '个人中心' }
    }, {
      path: '/entryOrder',
      name: 'entryOrder',
      component: () => import('@/views/content/enter'),
      meta: { name: '录入订单', status: 1 }
    }, {
      path: '/orderManage',
      name: 'orderManage',
      component: () => import('@/views/content/order'),
      meta: { name: '订单管理', status: 1 }
    }, {
      path: '/orderDetail/',
      name: 'orderDetail',
      component: () => import('@/views/content/order/fails'),
      meta: { name: '订单失败详情', status: 1 }
    }]
  }]
}
]
